import { RegisterPage } from '../root';
import { schema as editSchema } from './edit';
import { schema as viewSchema } from './view';
import { schema as accountListSchema } from './account-list';
import { schema as cashListSchema } from './cash-apply-list';
import { schema as orderListSchema } from './order-list';
import { schema as applyListSchema } from './team-cash-apply-list';
import { schema as historyListSchema } from './history-cash-list';


RegisterPage({
    path: 'finance',
    label: '财务管理',
    icon: 'fa fa-credit-card',
    acl: 'finance:order',
    children: [
        {
            path: '/finance/setting',
            url: '/finance/setting',
            label: '提现账号设置',
            schema: editSchema,
            acl: 'finance:setting',
        },
        {
            path: '/finance/account/list',
            label: '提现账号审核',
            url: '/finance/account/list',
            acl: 'finance:account_list',
            schema: accountListSchema
        },
        {
            path: '/finance/cash/list',
            label: '提现申请审批',
            url: '/finance/cash/list',
            acl: 'finance:cash',
            schema: cashListSchema
        },
        {
            path: '/finance/cash/apply',
            label: '申请提现',
            url: '/finance/cash/apply',
            acl: 'finance:apply',
            schema: applyListSchema
        },
        {
            path: '/finance/cash/history',
            label: '提现历史',
            url: '/finance/cash/history',
            acl: 'finance:history',
            schema: historyListSchema
        },
        {
            path: '/finance/order/list',
            url: '/finance/order/list',
            label: '订单查看',
            acl: 'finance:order',
            schema: orderListSchema
        },
        {
            path: '/finance/view/:id',
            label: '审核信息查看',
            schema: viewSchema,
            acl: 'finance:view',
        },
    ]
});
